var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.getItemQuantity(4161102) >= 1) {
                cm.sendOk("回忆录不是在你包里吗？(其他栏)");
                cm.dispose()
            } else {
                cm.gainItem(4161102, 1);
                cm.sendOk("这次别再弄丢了。");
                cm.dispose()
            }
        } else {
            cm.dispose()
        }
    }
};